<?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
    'options'=>array(
        'title'=>$title,
        'autoOpen'=>true,
        'modal'=>true,
        'resizable'=>true,
        'text-align'=>'left',
    ),
)); ?>
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'form-confirm-email',
    'action'=>Yii::app()->createUrl('user/auth/SNLogin'),
    'method'=>'post',
)); ?>

<?php if(isset($userInfo)): ?>
    <?php echo CHtml::hiddenField('userInfo',$userInfo); ?>
<?php endif; ?>

<?php echo $message; ?>

<div class="buttons">
<?php foreach($buttons as $button): ?>
    <?php echo CHtml::submitButton($button->value,array(
        'name'=>$button->name,
    )); ?>
<?php endforeach; ?>
</div>

<?php $this->endWidget(); ?>
<?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?>